#include "Time.h"

using namespace SolidityEngine;

Time::Time()
{
    //ctor
}

Time::~Time()
{
    //dtor
}

///Return delta time in miliseconds
float Time::DeltaTime(){
    return float(_currenttime-_lastframetime);
}

void Time::Update(){
    _lastframetime=_currenttime;
    _currenttime=SDL_GetTicks();
}

Uint32 Time::CurrentTime(){
    return _currenttime;
}

Uint32 Time::_currenttime=0;
Uint32 Time::_lastframetime=0;

